
{extend name="AdminEx/index" /}

{block name="main"}
        <!-- page heading start-->
        <div class="page-heading">
            <h3>
                {$title}
            </h3>
            <ul class="breadcrumb">
                <li>
                    <a href="#">Form</a>
                </li>
                <li class="active"> Form Validation </li>
            </ul>
        </div>
        <!-- page heading end-->

        <!--body wrapper start-->
        <div class="wrapper">
            <div class="row">
                <div class="col-lg-12">
                    <section class="panel">
                        <header class="panel-heading">
                           添加角色
                        </header>
                        <div class="panel-body">
                            <form  action="{:url('rest/Role/save')}" method="post" role="form" class="form-horizontal adminex-form">
                                <div class="form-group has-success">
                                    <label class="col-lg-2 control-label">名字</label>
                                    <div class="col-lg-10">
                                        <input name="name" type="text" placeholder="" id="f-name" class="form-control">
                                    </div>
                                </div>
                               
                                <div class="form-group has-warning">
                                    <label class="col-lg-2 control-label">说明</label>
                                    <div class="col-lg-10">
                                        <input name="remark" type="text" id="email2" class="form-control">
                                    </div>
                                </div>

                                <div class="form-group ">
                                        <label for="newsletter" class="control-label col-lg-2 col-sm-3">启用</label>
                                        <div class="col-lg-10 col-sm-9">
                                            <input  type="checkbox" style="width: 20px" class="checkbox form-control" id="newsletter" name="status" value="1" checked>
                                        </div>
                                    </div>

                                <div class="form-group">
                                    <div class="col-lg-offset-2 col-lg-10">
                                        <button class="btn btn-primary" type="submit">Submit</button>
                                    </div>
                                </div>
                            </form>
                        </div>
                    </section>
                </div>
            </div>
            <div class="row">

{/block}